package c.e.a.b.g;

import java.util.concurrent.Executor;

public final class n<TResult, TContinuationResult> implements b, c, d<TContinuationResult>, x<TResult> {
    public final Executor a;
    public final a<TResult, g<TContinuationResult>> b;
    public final a0<TContinuationResult> c;

    public n(Executor executor, a<TResult, g<TContinuationResult>> aVar, a0<TContinuationResult> a0Var) {
        this.a = executor;
        this.b = aVar;
        this.c = a0Var;
    }

    public final void a(g<TResult> gVar) {
        this.a.execute(new o(this, gVar));
    }

    public final void b() {
        this.c.o();
    }

    public final void onFailure(Exception exception) {
        this.c.m(exception);
    }

    public final void onSuccess(TContinuationResult tContinuationResult) {
        this.c.n(tContinuationResult);
    }
}
